package com.br.aiops.schedule.judge;

import com.br.aiops.counter.AlertLogCounter;
import com.br.aiops.schedule.AbstractSchedule;

public class DurationAndAlertTimesResumeJudge implements ResumeJudge {

    @Override
    public boolean isResume(AbstractSchedule schedule, AlertLogCounter alertLogCounter) {
        return schedule.getCount(alertLogCounter) <= alertLogCounter.getRule().getResumeTimes();
    }
}
